package org.argeproje.resim.proc.math;

import java.awt.image.renderable.ParameterBlock;

import javax.media.jai.JAI;
import javax.media.jai.PlanarImage;

import org.argeproje.resim.proc.data.Data;
import org.argeproje.resim.proc.data.ImageDA;


public class AbsolutePR extends MathPR {

	public Data process() {
		ParameterBlock pb = new ParameterBlock();
		PlanarImage im = getInputAsPlanarImage();
		pb.addSource(im);
		PlanarImage out = JAI.create("absolute", pb, null);
		ImageDA o = new ImageDA(out);
		setOutput(o);
		return getOutput();
	}

}
